﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CoreProject.IRepository;
using CoreProject.IService;
using CoreProject.Model;

namespace CoreProject.Service
{
    public class GoodsTypeService : BaseService<GoodsType>, IGoodsTypeService
    {
        private readonly IGoodsTypeRepository _repository;

        public GoodsTypeService(IGoodsTypeRepository repository) : base(repository)
        {
            this._repository = repository;
        }

        public async Task<List<GoodsType>> GetGoodsTypeAsync()
        {
            return await _repository.GetGoodsTypeAsync();
        }
    }
}
